package com.foxire.javabean;

public class StudentOperator {
    // 提供方法，打印学生对象总成绩
    public void printTotalScore(Student student)
    {
        System.out.println(student.getName() + "的总成绩为：" + student.getChinese() + student.getMath());
    }

    // 提供方法，打印学生对象平均成绩
    public void printAverageScore(Student student)
    {
        System.out.println(student.getName() + "的平均成绩为：" + (student.getChinese() + student.getMath()) / 2);
    }
}
